home *** CD-ROM | disk | FTP | other *** search
- Path: news.enter.net!usenet
- From: mstephen@enter.net (Mark Stephen)
- Newsgroups: comp.lang.c
- Subject: Re: Leap Years
- Date: Sat, 02 Mar 1996 00:55:23 -0500
- Organization: ENTER.NET
- Message-ID: <LL+Nx8LNq9RM083yn@enter.net>
- References: <8BA8405.02C70020E1.uuout@sourcebbs.com>
- <4h6ara$mu@netnews1.apci.com> <825684095snz@genesis.demon.co.uk>
- NNTP-Posting-Host: ppp17.enter.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
-
- In article <825684095snz@genesis.demon.co.uk>,
- Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
- > int IsLeapYear(int year)
- > {
- > if (year % 4 != 0)
- > return FALSE;
- >
- > if (year % 100 != 0)
- > return TRUE;
- >
- > if (year % 400 != 0)
- > return FALSE;
- >
- > return TRUE;
- > }
-
- This must have been a "Larry" day, nu?
-